package com.yyge.controller.user.req;/**
 * @program: js-hd
 * @description: 用户新增接收对象
 * @author: yyf
 * @create: 2024-02-01 09:46
 **/

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.text.DateFormat;
import java.util.Date;
import java.util.Map;

/**@PackageName:com.yyge.controller.user.req
 *@author: yyf
 *@data:2024/2/1 9:46
 */
@Data
@ApiModel(value = "用户新增接收对象",description = "用户新增接收对象")
public class UserAddReq implements Serializable {

    @ApiModelProperty(value = "账户名")
    @NotNull(message = "用戶名不能为空")
    @Size(min = 4,message = "用户名不小于4位")
    private String name;

    @ApiModelProperty(value = "QQ号")
    private Integer qq;

    @ApiModelProperty(value = "电子邮箱")
    private String email;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "密码")
    @NotNull(message = "密码不能为空")
    @Size(min = 6,message = "密码不小于6位")
    private String password;

    @ApiModelProperty(value = "token信息")
    private String token;

    @ApiModelProperty(value = "密码提示")
    private String hint;

    @ApiModelProperty(value = "用户秘钥")
    private String strKey;

    @ApiModelProperty(value = "到期时间")
    private Date expirationTime;

    private Map<String, Object> params;
    private static final long serialVersionUID = 1L;
}
